package website.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import website.domain.Comment;
import website.domain.Link;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    @Select("select * from tb_comment where rid=#{rid} and parent_id=#{id};")
    List<Comment> getByRidAndParentId(Integer rid, Integer id);
}
